import request from "@/utils/request";
import requestx from "@/utils/requestx";

//用户登陆
export const login = ((eilnfoData: any) => {
    return request({
        url: '/user/login',
        method: 'post',
        data: eilnfoData
    }) as any
})


//查询位置信息
export const selectTableLocationEntire = ((alex: any) => {
    return request({
        url: '/TableLocation/selectTableLocationEntire',
        method: 'post',
        data: alex
    })
})
//查询库位信息
export const getTableLocationLocationName = ((alex: any) => {
    return request({
        url: '/TableLocation/getTableLocationLocationName',
        method: 'post',
        data: alex
    })
})
//查询任务列表
export const selectTableMaintaskInfoList = ((alex: any) => {
    return request({
        url: '/TableMaintask/selectTableMaintaskInfoList',
        method: 'post',
        data: alex
    })
})

//查询所有位置信息
export const selectTableLocationTotalList = ((alex: any) => {
    return request({
        url: '/TableLocation/selectTableLocationTotalList',
        method: 'post',
        data: alex
    })
})
//查询辊框内轧辊信息
export const selectTableLocationProductList = ((alex: any) => {
    return request({
        url: 'TableProduct/selectTableLocationProductList',
        method: 'post',
        data: alex
    })
})

//查询设备状态
export const selectTableEquipmentMachineAll = ((alex: any) => {
    return request({
        url: '/TableEquipmentMachine/selectTableEquipmentMachineAll',
        method: 'post',
        data: alex
    })
})

//根据区域查询位置的信息状态
export const getTableLocationLocationRegionList = ((alex: any) => {
    return request({
        url: '/TableLocation/getTableLocationLocationRegionList',
        method: 'post',
        data: alex
    })
})
//添加主任务的数据信息
export const insertTableMaintaskInfo = ((alex: any) => {
    return request({
        url: '/TableMaintask/insertTableMaintaskInfo',
        method: 'post',
        data: alex
    })
})
//主任务修改优先级
export const updateMaintaskInformation = ((alex: any) => {
    return request({
        url: '/TableMaintask/updateMaintaskInformation',
        method: 'post',
        data: alex
    })
})
//手动备辊
export const WGHomeT500 = ((alex: any) => {
    return requestx({
        url: '/WG/Home/T500',
        method: 'post',
        data: alex
    })
})
//手动备辊2
export const T500history = ((alex: any) => {
    return requestx({
        url: '/WG/Home/T500history',
        method: 'post',
        data: alex
    })
})
//查询历史记录
export const Selecthistory = ((alex: any) => {
    return requestx({
        url: '/WG/Home/Selecthistory',
        method: 'post',
        data: alex
    })
})
//查询历史记录详情
export const SelecthistorySon = ((alex: any) => {
    return requestx({
        url: `/WG/Home/SelecthistorySon?id=${alex}`,
        method: 'post',
    })
})
//主任务终止任务
export const updateMaintaskErrorInformation = ((alex: any) => {
    return request({
        url: `/TableMaintask/updateMaintaskErrorInformation`,
        method: 'post',
        data: alex
    })
})
//修改库位状态
export const updateTableLocationInfo = ((alex: any) => {
    return request({
        url: `/TableLocation/updateTableLocationInfo`,
        method: 'post',
        data: alex
    })
})